package com.yiji.fintech.musfinance.center.depositback.order.facade;

import com.acooly.core.utils.Money;
import com.acooly.core.utils.ToString;
import com.yiji.fintech.musfinance.base.enums.TradeTypeEnum;
import com.yiji.fintech.musfinance.center.base.order.OrderFacade;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * 充退order
 * Created by ouwen@yiji.com} on 2017/10/16.
 */
@Data
public class DepositBackFacadeOrder  extends OrderFacade {
    /**
     * 原充值内部流水号
     */
    @NotEmpty
    private String oldBizOrderNo;
    /**
     * 原充值外部流水号
     */
    @NotEmpty
    private String oldMerchOrderNo;
    /**
     * 原交易标识
     */
    @NotNull
    private TradeTypeEnum oldTradeType;
    /**
     *充退金额
     */
    @NotNull
    private Money amount;
    /**
     * 退款原因
     */
    @NotEmpty
    private String refundReason;

    @Override
    public String toString() {
        return ToString.toString(this);
    }
}
